package com.fanli.staff.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Map;

//@Configuration
@Data
public class Result {
    private Integer code;
    private String Msg;
    private Object data;

    public Result(Integer code, String msg) {
        this.code = code;
        Msg = msg;
    }

    public Result() {

    }

    public Result(Integer code, String msg, Object data) {
        this.code = code;
        Msg = msg;
        this.data = data;
    }

//    @Override
//    public String toString() {
//        return "Result{" +
//                "code=" + code +
//                ", Msg='" + Msg + '\'' +
//                ", data=" + data +
//                '}';
//    }
}
